package com.spring.controllerDI;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 *
 * @ClassName: ControllerTest
 * @Description: TODO
 **/
public class ControllerTest {

    public static void main(String[] args) {

        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("/applicationContext.xml");
        UserController bean = context.getBean(UserController.class);
        bean.save();
    }
}
